package cn.oms.manage.dao.persist.mapper;

import cn.oms.manage.pojo.entity.Customer;
import cn.oms.manage.pojo.vo.CustomerListItemVO;
import cn.oms.manage.pojo.vo.CustomerStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerMapper extends BaseMapper<Customer> {

    /**
     * 批量插入订单数据
     *
     * @return 受影响的行数
     */
    int insertBatch(List<Customer> customers);

    CustomerStandardVO getStandardById(Long id);

    List<CustomerListItemVO> list();

    void updateDepartmentNameByDepartmentId(Long id,String name);

}
